﻿@using S4Store.Domain
@{
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
@model S4Store.Models.Markting.JKXGModel
@{
    ViewBag.Title = "JKXG";
}

<div style="height:100%; overflow:auto">
<div style=" width:100%; height:30px; background:#E5EDEF">
    <div ratio="#25" class="panelBar" style="height: 25px;">
	<ul class="toolBar">
	@if (
                           CurrentUser.Position == S4Store.Domain.Position.SystemManager ||
                           CurrentUser.Position == S4Store.Domain.Position.SaleTutors ||
                           CurrentUser.Position == S4Store.Domain.Position.DealerTutors
                           )
		{
		<li class="historyrecord"><a  backtype="html" href="@Url.Action("AddImproveGuide", "ImproveGuide", new { guidetype = S4Store.Domain.ImproveGuide.ImproveGuideType.Markting.ToInt() ,referdesc="营销管理>电子传媒营销>网络媒体>订单进度" })" target="dialog" width="60%"><span class="icon edit">填写改善指导建议</span></a></li>
		}
		<li class=""><a  backtype="html" href="@Url.Action("JKXGHistory", new { MediaId = Model.Report.Media.Id})" target="navtab"  title="@(Model.Report.Media.Name)历史数据查询"><span class="icon search">历史数据查询</span></a></li>
		
	</ul>
</div>
</div>
    <div style="margin:20px; text-align:center">@Model.BarModel.Month.ToString("yyyy年M月")@(Model.Report.Media.Name)集客效果KPI</div>
    <table  class="reporttable"  style="border-collapse:collapse; width:100%">     
    <tr height="198" style="height:148.5pt" class="vtr">
    <th  class="inputedheader"><div>电子媒体名称</div></th>
    <th   ><div>本月获取信息目标</div></th>
    <th   ><div>月度费用(万)</div></th>
    <th  ><div>计划发帖<br />/<br />文数</div></th>
    <th   ><div>实际发帖<br />/<br />文数</div></th>
    <th   ><div>点击数<br />/<br />上月关注数</div></th>
    <th   ><div>单击退出数<br />/<br />休眠账户数</div></th>
    <th   ><div>获取信息数<br />/<br />新增关注数</div></th>
    <th   ><div>主动来电数</div></th>
    <th   ><div>邀约来店数</div></th>
    <th   class="calculated"><div>发贴<br />/<br />文执行率</div></th>
    <th   class="calculated"><div>单击退出率<br />/<br />休眠账户率</div></th>
    <th   class="calculated"><div>资源获取总数</div></th>
    <th   class="calculated"><div>集客进度</div></th>
    <th   class="calculated"><div>集客进度差</div></th>
    <th   class="calculated"><div>获取信息比</div></th>
    <th   class="calculated"><div>获得电话占比</div></th>
    <th   class="calculated"><div>线下转化率</div></th>
    <th   class="calculated"><div>单组资源成本</div></th>
</tr>
    <tr height="26" style="height:19.5pt" class="xl65">
            <td>@Model.Report.Media.Name</td>
            <td>@Model.Report.HQXXMB</td>
            <td>@Model.Report.YDFY</td>
            <td>@Model.Report.JHFTS</td>
            <td>@Model.Report.FTS</td>
            <td>@Model.Report.DJS</td>
            <td>@Model.Report.DJTCS</td>
            <td>@Model.Report.HQXXS</td>
            <td>@Model.Report.ZDLDS</td>
            <td>@Model.Report.YYLDS</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.FTZXLV >= Model.Report.NetMarketingStandard.FTZXLV)>@Model.Report.FTZXLV.toInt()%</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.DJTCLV >= Model.Report.NetMarketingStandard.GZTCLV)>@Model.Report.DJTCLV.toInt()%</td>
            <td>@Model.Report.HQZYZS</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.JKJDDiff >=0)>@Model.Report.JKJD.toInt()%</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.JKJDDiff >=0)>@Model.Report.JKJDDiff.toInt()%</td>
            <td>@Model.Report.HQXXB.toInt()%</td>
            <td>@Model.Report.HDDHB.toInt()%</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.XXZHLV >= Model.Report.NetMarketingStandard.XXZHLV)>@Model.Report.XXZHLV.toInt()%</td>
            <td>@Model.Report.DZZYCB.toInt(3)</td>        
    </tr>
    <tr height="26" style="height:19.5pt" class="xl65">
            <td>网站小计</td>
            <td>@Model.Report.GroupReport.HQXXMB</td>
            <td>@Model.Report.GroupReport.YDFY</td>
            <td>@Model.Report.GroupReport.JHFTS</td>
            <td>@Model.Report.GroupReport.FTS</td>
            <td>@Model.Report.GroupReport.DJS</td>
            <td>@Model.Report.GroupReport.DJTCS</td>
            <td>@Model.Report.GroupReport.HQXXS</td>
            <td>@Model.Report.GroupReport.ZDLDS</td>
            <td>@Model.Report.GroupReport.YYLDS</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.GroupReport.FTZXLV >= Model.Report.NetMarketingStandard.FTZXLV)>@Model.Report.GroupReport.FTZXLV.toInt()%</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.GroupReport.DJTCLV >= Model.Report.NetMarketingStandard.GZTCLV)>@Model.Report.GroupReport.DJTCLV.toInt()%</td>
            <td>@Model.Report.GroupReport.HQZYZS</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.GroupReport.JKJDDiff >= 0)>@Model.Report.GroupReport.JKJD.toInt()%</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.GroupReport.JKJDDiff >= 0)>@Model.Report.GroupReport.JKJDDiff.toInt()%</td>
            <td>@Model.Report.GroupReport.HQXXB.toInt()%</td>
            <td>@Model.Report.GroupReport.HDDHB.toInt()%</td>
            <td @S4Store.Utils.GetBgColor(Model.Report.GroupReport.XXZHLV >= Model.Report.NetMarketingStandard.XXZHLV)>@Model.Report.GroupReport.XXZHLV.toInt()%</td>
            <td>@Model.Report.GroupReport.DZZYCB.toInt(3)</td>        
    </tr>

<tr>
    <th colspan="10">考核标准</th>
    <td align="center">@Model.Report.NetMarketingStandard.FTZXLV.toInt()%</td>
    <td align="center">@Model.Report.NetMarketingStandard.GZTCLV.toInt()%</td>
    <td align="center"></td>
    <td align="center">@Model.Report.RateOfTime.toInt()%</td>
    <td align="center">@Model.Report.RateOfTime.toInt()%</td>
    <td align="center"></td>
    <td align="center"></td>
    <td align="center">@Model.Report.NetMarketingStandard.XXZHLV.toInt()%</td>
    <td align="center"></td>
</tr>
        </table>
    
        
</div>